<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> 
<head> 
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> 
	<title><?php echo config("page_title"); ?></title>
	<style type="text/css"> 
	
		<?php
			echo file_get_contents("../global/style.css");
		?>
		
	</style>
	<?php
		include "../global/mobile_header.php";
	?>
	<?php
	
		if (config("useragent_match") != "") {
			
			if (strpos(config("useragent_match"), '##') === false) {
				$uagents = Array(config("useragent_match"));
			} else {
				$uagents = explode('##', config("useragent_match"));
			}
			
			echo '
				<script type="text/javascript">

				var agent = navigator.userAgent;

				if (';
				
					for ($i=0; $i < count($uagents); $i++) { 
						
						$uagents[$i] = 'agent.indexOf(\''.$uagents[$i].'\') > -1';
						
					}
				
					echo implode(" || ", $uagents);
				
				echo ') {
					window.location.href = "'.config("useragent_redirect_url").'";
				}

				</script>
			';
			
		}
	
	?>
</head> 
<body> 

<div id="itlogo"><?php echo config("header_logo"); ?></div>

<div id="header"> 

	<a href="#"><?php echo config("header_title"); ?></a> 

</div> 

<div id="content"> 
